.li-button {
  width: 94px;
  height: 36px;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0;
  transition: 0.1s;
  font-weight: 500;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 2px;
  margin: 0 4px;

  &:hover {
    background: rgb(241, 238, 238);
    border: 1px solid #c3c7cf;
    color: #494b50;
  }

  &.is-round {
    border-radius: 18px;
  }

  &.is-circle {
    border-radius: 50%;
    padding: 10px 8px;
    width: 36px;
  }

  &.is-icon {
    padding: 0px;
    i {
      margin-right: 4px;
    }
  }

  &.is-loading {
    cursor: not-allowed;
    background: rgb(252, 249, 249);
    border: 1px solid #dbdde0;
    color: #acacac;
    overflow: hidden;

    &:hover {
      background: rgb(252, 249, 249);
      border: 1px solid #dbdde0;
      color: #acacac;
    }
  }

  &.is-disabled {
    cursor: not-allowed;
    background: rgb(252, 249, 249);
    border: 1px solid #dbdde0;
    color: #acacac;
    &:hover {
      background: rgb(252, 249, 249);
      border: 1px solid #dbdde0;
      color: #acacac;
    }
  }
}

.li-button--primary {
  color: #fff;
  background-color: #1c7ed6;
  border-color: #1c7ed6;

  &:hover {
    color: #fff;
    background-color: #196eb9;
    border-color: #1c7ed6;
  }

  &.is-plain {
    color: #ffffff;
    background: #9dc3e4;
    border-color: #9dc3e4;
  }

  &.is-plain:hover {
    color: #fff;
    background-color: #1c7ed6;
    border-color: #1c7ed6;
  }
}

.li-button--success {
  color: #fff;
  background-color: #19be6b;
  border-color: #19be6b;

  &:hover {
    color: rgb(255, 255, 255);
    background-color: #2fa86c;
    border-color: #48ca89;
  }

  &.is-plain {
    color: #19be6b;
    background: #87e9b8;
    border-color: #48ca89;
  }

  &.is-plain:hover {
    color: #fff;
    background-color: #19be6b;
    border-color: #19be6b;
  }
}

.li-button--warning {
  color: #fff;
  background-color: #f90;
  border-color: #f90;

  &:hover {
    color: #fff;
    background-color: rgb(253, 178, 65);
    border-color: rgb(253, 178, 65);
  }

  &.is-plain {
    color: #f90;
    background-color: rgb(255, 214, 152);
    border-color: rgb(255, 206, 138);
  }

  &.is-plain:hover {
    color: #fff;
    background-color: #f90;
    border-color: #f90;
  }
}

.li-button--danger {
  color: #fff;
  background-color: #ff3300;
  border-color: #ff3300;

  &:hover {
    color: #fff;
    background-color: #ee7c60;
    border-color: #ee7c60;
  }

  &.is-plain {
    color: #ff3300;
    background-color: #ffa38d;
    border-color: #fd9379;
  }

  &.is-plain:hover {
    color: #fff;
    background-color: #ff3300;
    border-color: #ff3300;
  }
}

.li-button--info {
  color: #fff;
  background-color: #495057;
  border-color: #495057;

  &:hover {
    color: #fff;
    background-color: #76818b;
    border-color: #76818b;
  }

  &.is-plain {
    color: #ffffff;
    background-color: #76818b;
    border-color: #76818b;
  }

  &.is-plain:hover {
    color: #fff;
    background-color: #495057;
    border-color: #495057;
  }
}

.li-button--text {
  color: #0080ff;
  border: none;

  &:hover {
    color: #0080ff;
    border: none;
    background: none;
  }

  &.is_loading {
    color: #0080ff;
    border: none;
    background: none;
    cursor: not-allowed;
  }
}

.li-button--small {
  width: 80px;
  height: 30px;
  padding: 6px 6px;
  border-radius: 2px;
  &.is-circle {
    border-radius: 50%;
    padding: 6px 6px;
    width: 30px;
  }
}

.li-button--mini {
  width: 70px;
  height: 24px;
  padding: 4px 4px;
  font-size: 12px;
  border-radius: 2px;

  &.is-circle {
    border-radius: 50%;
    padding: 4px 4px;
    width: 24px;
  }
}

.li-button-group {
  display: inline-block;
  vertical-align: middle;

  & > .li-button {
    float: left;
    position: relative;
    margin: 0px;

    .is-icon {
      padding: 0px;
    }

    & + .li-button {
      margin-left: 0;
    }
    &.is-disabled {
      z-index: 1;
    }
    &:first-child {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }
    &:last-child {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }
    &:first-child:last-child {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;

      &.is-round {
        border-radius: 20px;
      }

      &.is-circle {
        border-radius: 50%;
      }
    }
    &:not(:first-child):not(:last-child) {
      border-radius: 0;
    }
    &:not(:last-child) {
      margin-right: -1px;
    }

    &:hover,
    &:focus,
    &:active {
      z-index: 1;
    }
  }
}
